package com.ego.controller;

import com.ego.commons.pojo.EgoResult;
import com.ego.service.TbItemParamItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title
 * @Author Lyg
 * @Description:
 */
@RestController
public class TbItemParamItemController {
    @Autowired
    private TbItemParamItemService tbItemParamItemService;

    //根据商品id查询对应规格参数
    @RequestMapping("/rest/item/param/item/query/{itemId}")
    public EgoResult restItemParmItemQuery(@PathVariable long itemId){


        return tbItemParamItemService.itemParmItemQueryByItemId(itemId);
    }
}
